<!-- eslint-disable vue/multi-word-component-names -->
<template>
    <div id="right-bar">
        <div class="bar-list person">
            <router-link class="item" to="/person">
                <span>个人中心</span>
            </router-link>
        </div>
        <div class="bar-list cv">
            <router-link class="item" to="/person_cv">
                <span>我的简历</span>
            </router-link>
        </div>
        <div class="bar-list about">
            <router-link class="item" to="/about">
                <span>关于我们</span>
            </router-link>
        </div>
        <div class="bar-list online">
            <router-link class="item" to="/about">
                <span>在线客服</span>
            </router-link>
        </div>
        <div class="bar-list feedback">
            <router-link class="item" to="/feedback">
                <span>意见反馈</span>
            </router-link>
        </div>
        <el-backtop class="go-top"></el-backtop>
    </div>
 </template>
 <script>
 import Api from "@/Api.js";
 export default {
     data() {
         return {
            
         }
     },
     methods: {
     },
 }
 </script>
  
 <style scoped lang="less">
 /* scoped 让style样式 局部生效*/
 #right-bar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9;
    width: 50px;
    height: 100%;
    background: #fff;
    box-shadow: -1px 0px 10px 0px rgba(215,215,215,0.44);
    display: flex;
    flex-direction: column;
    justify-content: center;


    .bar-list{
        position: relative;
        border-bottom: 1px #EAEAEA solid;
    }

    .bar-list .item{
        display: block;
        overflow: hidden;
        height: 100%;
        padding-bottom: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        padding-top: 5px;
    }

    .bar-list .item span{
        font-size: 13px;
        color: #666;
        line-height: 16px;
        display: inline-block;
        vertical-align: top;
        padding: 0 10px;
    }

    .bar-list .item::before{
        margin: 5px 0;
        display: block;
        content: '';
        width: 20px;
        height: 20px;
    }

    .bar-list .item:hover{
        background: #D11A2D;
        border-bottom-color: transparent;
    }

    .bar-list .item:hover span{
        color: #ffffff;
    }

    // 个人中心
    .bar-list.person .item::before{
        background: url(../assets/icon/right-bar-ico.png) no-repeat 0 -21px;
    }

    .bar-list.person .item:hover::before{
        background: url(../assets/icon/right-bar-ico.png) no-repeat -21px -21px;
    }

    // 我的简历
    .bar-list.cv .item::before{
        background: url(../assets/icon/right-bar-ico.png) no-repeat 0 -84px;
    }

    .bar-list.cv .item:hover::before{
        background: url(../assets/icon/right-bar-ico.png) no-repeat -21px -84px;
    }

    // 关于我们
    .bar-list.about .item::before{
        background: url(../assets/icon/right-bar-ico.png) no-repeat 0 -63px;
    }

    .bar-list.about .item:hover::before{
        background: url(../assets/icon/right-bar-ico.png) no-repeat -21px -63px;
    }

    // 在线客服
    .bar-list.online .item::before{
        background: url(../assets/icon/right-bar-ico.png) no-repeat 0 -42px;
    }

    .bar-list.online .item:hover::before{
        background: url(../assets/icon/right-bar-ico.png) no-repeat -21px -42px;
    }

    // 意见反馈
    .bar-list.feedback .item::before{
        background: url(../assets/icon/right-bar-ico.png) no-repeat 0 0;
    }

    .bar-list.feedback .item:hover::before{
        background: url(../assets/icon/right-bar-ico.png) no-repeat -21px 0;
    }

    // 返回顶部
    .go-top{
        position: absolute;
        bottom: 30px!important;
        right: 0!important;
        box-shadow:none!important;
        padding-top: 12px;
        width: 100%;
        height: 40px;
        border-radius: 0!important;
        text-align: center;
        cursor: pointer;
        background-color: transparent;
        background-image: url(../assets/icon/back-top.png);
        background-position: 0 0;
    }

    .go-top:hover{
        background-color: #D11A2D;
        background-image: url(../assets/icon/back-top.png);
        background-position: -50px 0;
    }

    :deep(.go-top .el-icon-caret-top){
        display: none;
    }

}
 </style>